<?php
include("include/config.inc.php");
if(!isset($_SESSION['s_activIds']))
{
	header("Location:checkLogin.php");
}
else
{
	$userId = $_SESSION['s_activIds'];
	$contractArrayList = array();
  $n=0;
  $selectprocessList = "SELECT invoiceId,invoiceNo
  	                      FROM invoice
  	                    WHERE userId = ".$userId;
  $selectcontractListRes = mysql_query($selectprocessList);
  while($contractListRow = mysql_fetch_array($selectcontractListRes))
  {
  	$contractArrayList['invoiceId'][$n] = $contractListRow['invoiceId'];
  	$contractArrayList['invoiceNo'][$n] = $contractListRow['invoiceNo'];
  	$n++;
  }
}
include("bottom.php");
$smarty->assign('contractArrayList',$contractArrayList);
$smarty->display("stageProcess.tpl");
?>